<?php

namespace Database\Factories;

use App\Models\Membercardbatch;
use Illuminate\Database\Eloquent\Factories\Factory;

class MemberCardBatchFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Membercardbatch::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'title' => $this->faker->text(40),
            'total_num' => $this->faker->numberBetween(1000, 9999),
            'use_num' => $this->faker->numberBetween(1, 9999),
            'use_start_time' => $this->faker->time('Y-m-d H:i:s', 'now'),
            'use_end_time' => $this->faker->time('Y-m-d H:i:s', 'now'),
            'use_day' => $this->faker->numberBetween(1, 100),
            'sort' => $this->faker->numberBetween(1.100),
            'qrcode' => 'http://www.baidu.com',
            'status' => $this->faker->randomElement([0, 1]),
            'remark' => $this->faker->text(15)
        ];
    }
}
